<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h2>修改新闻</h2>
<form action="UpdateNewsServlet" method="post">
    <input type="hidden" name="newsId" value="${news.newsId}">
    标题:<input type="text" name="title" value="${news.title}"><br>
    板块:<select name="boardid">
             <option>--请选择板块--</option>
            <c:forEach items="${boardList}" var="b">
                <option value="${b.boardId}" aria-selected="true">${b.boardName}</option>
            </c:forEach>
        </select><<br>
    内容:<textarea name="context" id="" cols="30" rows="10">${news.context}</textarea>
    <input type="submit" value="确认">

</form>
</body>
</html>
